#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

class MGraphView;
class QGroupBox;
class Building;

namespace Ui {
class Widget;
}

class City;
class Widget : public QWidget
{
    Q_OBJECT
    
public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    virtual bool Init();

public slots:
    void updateMsgPanel(Building *building);
    void appendMsgFrHtml(const QString &str);
    void appendMsgFrString(QString &str);
    void updateDateStatus(const QString &str);
    void updatePositionStatus(const QString &str);
    void updateTaskMsgStatus(const QString &city,const QString &knight,const QString &task,const QString &effect);

private slots:
    void on_pushButton_StatusScene_clicked();

    void on_pushButton_3_clicked();

private:
    Ui::Widget *ui;
    void paintEvent(QPaintEvent *);
    MGraphView *m_graphicsView;
    QGroupBox *m_groupBox;
};

#endif // WIDGET_H
